﻿<%@ Application Language="C#" %>

<script RunAt="server">

    void Application_Start(object sender, EventArgs e)
    {
    }

    protected void Application_BeginRequest(object sender, EventArgs e)
    {
        DGP.Framework.HttpService.RewriteUtilities.GetRulesFromFile(@"Rewrite.xml", HttpContext.Current.Request);
    }

    void Application_End(object sender, EventArgs e)
    {
    }

    void Application_Error(object sender, EventArgs e)
    {
    }

    void Session_Start(object sender, EventArgs e)
    {
        Session["SiteUser"] = new Model.Users();
    }

    void Session_End(object sender, EventArgs e)
    {
        Session["SiteUser"] = null;
        Session.Abandon();
    }
       
</script>

